﻿// Necroz project team © <2015> <ArchLord2EMU>
// 
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
// 
// Author:Sagara
// Date:2015-09-24-21:56
namespace ArchLord2Commons.Models
{
    public class PlayerData
    {
        public virtual int AccountId { get; set; }
        /// <summary>
        /// Character id
        /// </summary>
        public virtual int Id { get; set; }
        /// <summary>
        /// Fraction id
        /// </summary>
        public virtual byte Fraction { get; set; }
        /// <summary>
        /// Class id
        /// </summary>
        public virtual byte Class { get; set; }
        /// <summary>
        /// Race id
        /// </summary>
        public virtual byte Race { get; set; }
        /// <summary>
        /// Gender id
        /// </summary>
        public virtual byte Gender { get; set; }

        /// <summary>
        /// Character preset data(face, body type, etc.)
        /// </summary>
        public virtual byte[] Data { get; set; }
        /// <summary>
        /// Character name
        /// </summary>
        public virtual string Name { get; set; }

        /// <param name="accountid">Owner account id</param>
        /// <param name="id">Character id</param>
        /// <param name="fraction">Fraction id</param>
        /// <param name="classId">Class id</param>
        /// <param name="race">Race id</param>
        /// <param name="gender">Gender id</param>
        /// <param name="data">Character preset data(face, body type, etc.)</param>
        /// <param name="name">Character name</param>
        public PlayerData(int accountid, int id, byte fraction, byte classId, byte race, byte gender, byte[] data, string name)
        {
            AccountId = accountid;
            Id = id;
            Fraction = fraction;
            Class = classId;
            Race = race;
            Gender = gender;
            Data = data;
            Name = name;
        }

        /// <summary>
        /// No argument constructor
        /// </summary>
        public PlayerData()
        {
          
        }
    }
}
